﻿@model DenderaMvcWeb.Models.filato

@{
    ViewBag.Title = "Nuovo filato";
}

<h2>Nuovo filato</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>filato</legend>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.id_filato)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.id_filato)
            @Html.ValidationMessageFor(model => model.id_filato)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.label)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.label)
            @Html.ValidationMessageFor(model => model.label)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.denari)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.denari)
            @Html.ValidationMessageFor(model => model.denari)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.costo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.costo)
            @Html.ValidationMessageFor(model => model.costo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.caratteristiche)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.caratteristiche)
            @Html.ValidationMessageFor(model => model.caratteristiche)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.note)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.note)
            @Html.ValidationMessageFor(model => model.note)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.costo_aggiornato_al)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.costo_aggiornato_al)
            @Html.ValidationMessageFor(model => model.costo_aggiornato_al)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ultima_modifica)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ultima_modifica)
            @Html.ValidationMessageFor(model => model.ultima_modifica)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.id_anag, "anagrafica")
        </div>
        <div class="editor-field">
            @Html.DropDownList("id_anag", String.Empty)
            @Html.ValidationMessageFor(model => model.id_anag)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
